package pers.qianyu.diytomcat.constants;

/**
 * @author mizzle rain
 * @date 2021-01-07 10:22
 */
public interface Headers {
    String RESPONSE_HEADER_200 = "HTTP/1.1 200 OK\r\n" +
            "Content-Type:{}\r\n\r\n";
    String RESPONSE_HEADER_404 = "HTTP/1.1 404 Not Found\r\n" +
            "Content-Type:text/html\r\n\r\n";
    String RESPONSE_HEADER_500 = "HTTP/1.1 500 Internal Server Error\r\n" +
            "Content-Type:text/html\r\n\r\n";
    String RESPONSE_HEADER_200_WITH_COOKIE = "HTTP/1.1 200 OK\r\n" +
            "Content-Type:{}{}\r\n\r\n";
    String RESPONSE_HEADER_200_GZIP = "HTTP/1.1 200 OK\r\n" +
            "Content-Type:{}{}\r\n" +
            "Content-Encoding:gzip\r\n\r\n";
    String RESPONSE_HEADER_302 = "HTTP/1.1 302 Found\r\n" +
            "Location:{}\r\n\r\n";
}
